<template>
  <div class="search-song-Lists">
    <content-list :contentList="albumDatas"></content-list>
  </div>
</template>

<script>
import ContentList from "@/components/ContentList";
import {mixin} from "../../mixins";
import {likeStaffListName} from "@/api";

export default {
  name: "SearchStaffList",
  components: {
    ContentList
  },
  data(){
    return{
      albumDatas:[]
    }
  },
  mounted() {
    this.getSearchList()
  },
  methods:{
    //通过模糊查询返回乐谱集列表
    getSearchList(){
      if (!this.$route.query.keywords){
        this.notify('你输入的内容为空','warning')
      }else {
        likeStaffListName(this.$route.query.keywords).then(res =>{
          if (res){
            this.albumDatas = res.data
          }else {
            this.notify('暂无该乐谱内容','warning')
          }
        })

      }
    },
  }
}
</script>

<style lang="scss" scoped>
@import "../../assets/css/search-song-Lists.scss";
</style>
